import json


# def get_config():
#     with open('../../config.json') as config_file:
#         config = json.load(config_file)
#         config_file.close()
#         return config
#
def get_server_config():
    with open('../../config.json') as config_file:
        config = json.load(config_file)
        config_file.close()
        server_ip = config['server']['server_ip']
        server_port = config['server']['server_port']
        return {"bind_ip": server_ip, "bind_port": server_port}
